package com.oracle.lingshangejia.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.oracle.lingshangejia.R;
import com.oracle.lingshangejia.bean.ServicePackageBean;
import com.oracle.lingshangejia.bean.ServicePackageDetailBean;


import java.util.List;

/**
 * @松 on 2019/7/4 17:04
 * 服务包详情适配器
 */
public class ServicePackageDetailAdapter extends BaseQuickAdapter<ServicePackageDetailBean.DataBean.DzbUserRecordDOSBean ,BaseViewHolder> {


    public ServicePackageDetailAdapter( @Nullable List<ServicePackageDetailBean.DataBean.DzbUserRecordDOSBean> data) {
        super(R.layout.item_service_package_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ServicePackageDetailBean.DataBean.DzbUserRecordDOSBean item) {
                  helper.setText(R.id.tv_content, item.getContent());
                  helper.setText(R.id.tv_date, item.getDate());

    }
}
